package com.pucong.gitee.database.backup.common.entity.service;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pucong.gitee.database.backup.common.selfenum.FileServiceHistoryTypeEnum;
import com.pucong.gitee.database.backup.common.selfenum.ServiceFileType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
* @author pucong
* @company gitee.com/pucong
* @create 2020-12-02
*/
@Data
@TableName("AUTO_SERVICE_FILE_OPERATION_HISTORY")
@ApiModel("附件操作历史表")
public class ServiceFileOperationHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uuid",type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String uuid;

    @TableField("file_list_uuid")
    @ApiModelProperty("服务文件id")
    private String fileListUuid;

    @TableField("file_service_type")
    @ApiModelProperty("附件服务类型枚举类")
    private ServiceFileType fileServiceType;

    @TableField("operation_type")
    @ApiModelProperty("操作类型")
    private FileServiceHistoryTypeEnum operationType;

    @TableField("operation_content")
    @ApiModelProperty("操作内容")
    private String operationContent;

    @TableField("create_by")
    @ApiModelProperty("创建人id")
    private String createBy;

    @TableField("CREATE_TIME")
    @ApiModelProperty("创建时间")
    private Date createTime;

}
